package com.gsj.system;

import com.gsj.system.config.RsaKeyProperties;
import org.apache.shiro.crypto.hash.Md5Hash;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @program: clms-nine
 * @description: 系统管理的启动类
 * @author: 郭书江
 * @create: 2021-07-16 17:30
 **/
@SpringBootApplication
@MapperScan(basePackages = {"com.gsj.system.mapper"})
@ComponentScan(basePackages = "com.gsj")
@EnableConfigurationProperties(value = {RsaKeyProperties.class})
@EnableTransactionManagement//事务
public class SystemApp {
    public static void main(String[] args) {
        SpringApplication.run(SystemApp.class, args);
        Md5Hash md5Hash = new Md5Hash("123456", "1024", 1024);
        System.out.println(md5Hash);
    }
}
